<style>
#dopis_types_admin table input{
	margin:0px;
}
#dopis_types_admin table input[type=button]{
	border:none;
	background-color:transparent;
	padding:0px;
	width:16px;
	height:16px;
	cursor:pointer;
	margin:0px 2px;
}
#dopis_types_admin table input.xsmall{
	width:20px;
	text-align:center;
}
#dopis_types_admin table tr#templateDopis{
	display:none;
}
</style>
<div id="dopis_types_admin" class="area">
	<h1>Tipovi dopisa</h1>
	
	<table>
		<tr id="templateDopis" dtid="">
			<td><input type="text" name="edit_dt_id" id="edit_dt_id" class="xsmall" disabled="disabled" /></td>
			<td><input type="text" name="edit_dt_name" id="edit_dt_name" /></td>
			<td>
				<input type="button" class="save" onclick="DopisTypeSave(this)" title="sačuvaj" />
				<input type="button" class="cancel" onclick="DopisTypeCancelEdit(this);" title="poništi" />
			</td>
		</tr>
		<tr class="head">
			<td width="25">šifra</td>
			<td width="135">naziv</td>
			<td>
				<input type="button" class="novi" onClick="DopisTypeEdit(this)" title="novi" />
			</td>
		</tr>
		{{%loop start dt_id}}
		<tr dtid="{{$dt_id}}" dtname="{{$dt_name}}">
			<td align="center">{{$dt_id}}</td>
			<td>{{$dt_name}}</td>
			<td>
				<input type="button" class="edit" onClick="DopisTypeEdit(this)" title="izmeni" />
				<input type="button" class="delete" title="obriši" onClick="if(confirm('Da li želite da obrišete dopis \'{{$dt_name}}\'')){DopisTypeDelete('{{$dt_id}}')}" />
			</td>
		</tr>
		{{%loop end}}
	</table>
</div>